#ifndef DTOKEN_H
#define DTOKEN_H

#include "dactiveelement.h"
#include <QtCore/QFileInfo>

extern QString gCompositeDir;

class DComposite : public DActiveElement
{
	Q_OBJECT

public:
	DComposite(QObject *parent=0) : DActiveElement(parent) {}
	~DComposite() {}

	virtual const QString kind() const { return kComposite; }
	QString getFilePath() const { return QFileInfo(dir()).canonicalFilePath()+"/"+mFile; }

protected:
	virtual void parseDetail(const QDomElement& e);
	QString dir() const { return gCompositeDir; }

private:
	//about the composite details
	QString mFile; //without suffix file name of the composites
};

#endif // DTOKEN_H
